﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width,height=device-height, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0,shrink-to-fit=no" />
<meta name="format-detection" content="telephone=no" />
<!--em标准js代码，请放在页面的最上方，前面最好不要再有JS代码或JS文件-->
<script type="text/javascript" src="/js/rem.js"></script>
<link type="text/css" rel="stylesheet" href="/css/css.css" />

<title>东易日盛装饰开业盛典</title>
</head>

<body>		

	<div class="header">
		<!--<a href="javascript:history.go(-1);" class="backa"></a>-->

		<a href="javascript:;" class="seta"></a>
	</div>	

	<div class="main main2">
		<div class="wp1">
			<div class="wp2">
				
				<div class="t1"></div>

				<div class="m2_fm">
				</div>

				<div class="m2_us">

					<input type="text" class="p3_inp" id="desId" name="desId" value="dy" placeholder="请输入工号" style="margin-top: 30px">
					<input type="password" class="p3_inp" id="password" name="password" value="123456" placeholder="请输入密码">
					<input type="text" class="p3_inp" id="msg" name="msg" style="border: none;color: red">

					<div class="clear"></div>
				</div>

				<a herf="#" onclick="login()" class="go" style="margin-bottom: 1.5rem;">登录</a>

			</div>
		</div>
	</div>

	<img src="/images/bodysd.jpg" alt="" class="sd">
	<script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript">
		function login() {
			$("#msg").val("");
			var desId=$("#desId").val();
			var password=$("#password").val();
			$.ajax({
				url:"/designer/login",
				method:"post",
				data: {
					desId:desId,
					password:password
				},
				success:function (data) {
					if(data==0){
						$("#msg").val("设计师编码不存在")
					}
					if(data==1){
						$("#msg").val("密码错误")
					}
					if(data==2){
						location.href="/designer/index"
					}
				}

			})
		}

	</script>
</body>

<script type="text/javascript" src="/js/base.js"></script>
<script type="text/javascript">
</script>
</html>